package com.cloudkinto.service.platform.vo.yahoo;

import com.cloudkinto.common.common.DateUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class YahooMarkShipReq {
    private Long id;

    private String trackNo;

    private String logisticsCarrier;

    private String orderNo;

    private Date shipTime;


    public String getShipTimeStr() {
        if (shipTime == null) {
            return DateUtils.dateFormatToString(new Date(), "yyyyMMdd");
        }
        return DateUtils.dateFormatToString(shipTime, "yyyyMMdd");
    }
}
